
public class Transport {

	public static double SOU_BASE_HORA=5.0;
	public double hores;
	public String dni;
	//Constructor
	public Transport(double hores, String dni){
		this.hores=hores;
		this.dni=dni;
	}
	//Calcula preu
	public double Preu(){
		double preu;
		preu=SOU_BASE_HORA*hores;
		return preu;
	}
}
